package com.bp.hearthealth.pulse.lnapps.bp_di

import com.bp.hearthealth.pulse.lnapps.bp_db.bp_project.BpDataBaseManager
import com.bp.hearthealth.pulse.lnapps.bp_network.BpRetrofitManager
import com.bp.hearthealth.pulse.lnapps.bp_network.bp_api.ApiBpService
import com.bp.hearthealth.pulse.lnapps.bp_ui.bp_activity.bp_language_gender.bp_gender.BpGenderRepository
import com.bp.hearthealth.pulse.lnapps.bp_ui.bp_activity.bp_language_gender.bp_gender.BpGenderViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

val genderLib = module {

    single {
        BpGenderRepository(
            BpDataBaseManager.getInstance().getUser(),
            BpRetrofitManager.initRetrofit().getService(ApiBpService::class.java)
        )
    }

    viewModel { BpGenderViewModel(BpDataBaseManager.getInstance().getUser(),get()) }
}